package com.darren.archive.service;

import com.darren.archive.entity.SysDepartment;
import com.darren.framework.service.GenericService;

import java.util.List;


/**
 * <pre>
 * *********************************************
 * Copyright DARREN
 * All rights reserved.
 * Description: TODO(description)
 * HISTORY:
 * *********************************************
 *  Version		Date		Author	   		Desc
 *   v1.0       2018-04-11  Darren Zhou    Create
 *
 * *********************************************
 * </pre>
 */
public interface SysDepartmentService extends GenericService<SysDepartment, Long> {


    List<SysDepartment> getDepartmentTree(String departmentName);

    List<SysDepartment> getDepartmentList(String departmentName);

    SysDepartment save(SysDepartment entity);

    SysDepartment update(SysDepartment entity);

    void delete(SysDepartment entity);

    void deleteById(Long id);

    SysDepartment findById(Long id);


}
